package com.pan.kang.demo.res;

public interface BaseEnum {
    Integer getCode();

    String getMessage();

    default Boolean success() {
        if (BaseCode.OK.getCode().equals(this.getCode())) {
            return true;
        }
        return false;
    }

}
